import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';

import {QuestionListComponent} from "./question-list.component";
import {QuestionInsertComponent} from "./modify/question-insert.component";
import {QuestionModifyComponent} from "./modify/question-modify.component";

const questionRoutes: Routes = [{
  path: 'questionList',
  component: QuestionListComponent
},{
  path: 'questionModify',
  component: QuestionModifyComponent
},
  {
    path:'questionInsert',
    component:QuestionInsertComponent
  }];


@NgModule({
  imports: [
    RouterModule.forChild(questionRoutes)
  ],
  exports: [
    RouterModule
  ]
})

export class QuestionRoutingModule { }
